//
//  GnetQM_XMPPManager.h
//  SingleSignOn
//
//  Created by 王艳 on 16/1/12.
//  Copyright (c) 2016年 wangyan. All rights reserved.
//

#pragma mark 集成说明
/*
 需要添加的库
	在header Search Paths中设置
	$(SDKROOT)/usr/include/libxml2
	$(PROJECT_DIR)/.../XMPPFramework/module  //引入module
 1./libXml2
 2./libresolv
 3./CFNetWork
 4./Security
 5./libidn.a(加入xmppFrameWork就有)
 
 设置完请编译一下无错后，在进行下一步
 */

#import "XMPPFramework.h"
#import <Foundation/Foundation.h>
#import <uikit/UIKit.h>


@interface GnetQM_XMPPManager : NSObject
{
    XMPPStream *xmppStream;//最主要的xmpp流
    XMPPReconnect *xmppReconnect;
    
   	NSString *password;
    
    BOOL logoinorSignin;
    NSUserDefaults*userDefaults;
    
}


/******************系统初始化***************************/
//获得单例
+(GnetQM_XMPPManager*)sharedInstance;
//登录
- (BOOL)connectLogin:(void(^)(BOOL))a;
//注册
-(void)registerMothod:(void(^)(BOOL))b;
//断开连接
- (void)disconnect;


/*block指针*/
//登录函数指针
@property(nonatomic,copy)void(^logoin)(BOOL);
//注册指针
@property(nonatomic,copy)void(^signin)(BOOL);
//退出登录的block
@property (nonatomic,copy)void(^loginOutBlock)(void);
@end

